//
//  HouseHeaderView.m
//  PropertyMananger
//
//  Created by Mansion on 17/1/1.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "HouseHeaderView.h"

@implementation HouseHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.titleLabel = [[UILabel alloc] init];
        [self addSubview:self.titleLabel];
        //     self.titleLabel.backgroundColor = BHRandColor;
        
        self.titleLabel.textColor = BHColor(102, 102, 102);
        self.titleLabel.font = BHFont(15);
        self.titleLabel.textAlignment = NSTextAlignmentLeft;
        
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self).with.offset(15);
            make.centerY.equalTo(self).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(BHscreenW/4+10, 25));
        }];
        
        self.infoLabel = [[UILabel alloc]init];
        [self addSubview:self.infoLabel];
        self.infoLabel.textColor = BHColor(51, 51, 51);
        self.infoLabel.font = BHFont(15);
        self.infoLabel.textAlignment = NSTextAlignmentLeft;
        
        [self.infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.leading.equalTo(self.titleLabel.mas_trailing).with.offset(0);
            make.centerY.equalTo(self).with.offset(0);
            make.size.mas_equalTo(CGSizeMake(BHscreenW/2, 25));
        }];
        
        self.backgroundColor = [UIColor whiteColor];
        
    }
    return self;
}

@end
